<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <css file="__ROOT__/static/jqueryui/css/smoothness/jquery-ui-1.10.0.custom.css"/>
        <jquery/>
        <js file="__ROOT__/static/jqueryui/js/jquery-ui-1.10.0.custom.min.js"/>
        <script>
            $(function() {
                $( "#tabs" ).tabs();
            });
        </script>
        <css file="__PUBLIC__/css/category.css"/>
    </head>
    <body>
        <form action="{|U('add')}" method="post">
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">基本设置</a></li>
                    <li><a href="#tabs-2">模板设置</a></li>
                    <li><a href="#tabs-3">静态规则</a></li>
                </ul>
                <div id="tabs-1">
                    <table class="table2">
                        <tr>
                            <th>栏目名称</th>
                            <td>
                                <input type="text" class="w200" name="catname"/> <span class="desc">栏目名称，必须使用中文</span>
                            </td>
                        </tr>
                        <tr>
                            <th>静态目录</th>
                            <td>
                                <input type="text"class="w200" name="catdir"/> <span class="desc">栏目名称，必须使用中文</span>
                            </td>
                        </tr>
                        <tr>
                            <th>关键字</th>
                            <td>
                                <input type="text"class="w200" name="keywords"/> <span class="desc">栏目名称，必须使用中文</span>
                            </td>
                        </tr>
                        <tr>
                            <th>栏目描述</th>
                            <td>
                                <textarea name="description" class="w300 h100"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs-2">
                    <table class="table2">
                        <tr>
                            <th>栏目模板</th>
                            <td>
                                <input type="text" name="cattpl" class="w200" value="list.html"/><button class="bt2">选择模板</button><span class="desc"></span>
                            </td>
                        </tr>
                        <tr>
                            <th>内容页模板</th>
                            <td>
                                <input type="text" name="arctpl" class="w200" value="arc.html"/><button class="bt2">选择模板</button><span class="desc"></span>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="tabs-3">
                    <table class="table2">
                        <tr>
                            <th>栏目静态</th>
                            <td>
                                <input type="text" name="cathtml" class="w200" value="{htmlpath}/{catdir}/{cid}.html"/><span class="desc">{htmlpath}静态根目录 {catdir}列表目录 {cid}栏目ID</span>
                            </td>
                        </tr>
                        <tr>
                            <th>内容页静态</th>
                            <td>
                                <input type="text" name="archtml" class="w200" value="{htmlpath}/{catdir}/{y}{m}/{aid}.html"/><span class="desc">{htmlpath}根目录 {catdir}列表目录  {y}年 {m}月 {d}日 {aid}文章ID</span>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <input type="submit" class="bt1" value="添加栏目"/>
                </div>
            </div>

        </form>
    </body>
</html>
